﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Kevin.WindosControls.Test
{
    public class UIHelper
    {
        public static Control GetControlByType(string typeName)
        {
            Control result = null;
            
            switch (typeName.ToLower())
            {
                case "textbox":
                    result = new TextBox();
                    break;
                case "combobox":
                    result = new ComboBox();
                    break;
                case "checkbox":
                    result = new CheckBox();
                    break;
                default:
                    result = new TextBox();
                    break;

            }

            return result;
        }
    }
}
